Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

psub.b Rd, Rx, Ry

Rd[31:24] = Rx[31:24] - Ry[31:24]; Rd[23:16] = Rx[23:16] - Ry[23:16];
Rd[15:8] = Rx[15:8] - Ry[15:8]; Rd[7:0] = Rx[7:0] - Ry[7:0];
{d, x, y} ∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

001000110001

Rd

3

4

5

4

12

4

2

psub.h Rd, Rx, Ry

Rd[31:16] = Rx[31:16] - Ry[31:16];
Rd[15:0] = Rx[15:0] - Ry[15:0];
{d, x, y} ∈ {0, 1, …, 15}

Rev1+

111

Rx

00000

Ry

001000000001

Rd

3

4

5

4

12

4

Description

Perform subtraction of four pairs of packed bytes (psub.b) or two pairs of halfwords (psub.h). Upon overflow any additional bits are discarded and the result is wrapped around.

Status Flags:

Q:

Not affected.

V:

Not affected.

N:

Not affected.

Z:

Not affected.

C:

Not affected.